import i18n from '@/common/lang'

export const columns = [
  {
    label: i18n.t('supplier.record.code'),
    width: 'auto',
    prop: 'supplierCode',
    fixed: true,
    minWidth: 160
  },
  {
    label: i18n.t('supplier.record.suppierName'),
    width: 'auto',
    prop: 'fullName',
    minWidth: 160,
    fixed: true
  },
  {
    label: i18n.t('supplier.registerAudit.creditCode'),
    width: 'auto',
    prop: 'taxId',
    minWidth: 160,
    fixed: true
  },
  {
    label: i18n.t('supplier.record.freeze'),
    width: 'auto',
    prop: 'state',
    minWidth: 110
  },
  {
    label: i18n.t('supplier.record.state'),
    width: 'auto',
    prop: 'supplierState',
    minWidth: 110
  },
  {
    label: i18n.t('supplier.record.source'),
    prop: 'source',
    width: 'auto',
    minWidth: 110
  },
  {
    label: i18n.t('supplier.record.type'),
    prop: 'enterpriseType',
    width: 'auto',
    minWidth: 110
  },
  {
    label: i18n.t('supplier.record.creatTime'),
    prop: 'createTime',
    width: 'auto',
    minWidth: 160
  },
  {
    label: i18n.t('supplier.record.ceratBy'),
    prop: 'createName',
    width: 'auto',
    minWidth: 120
  }
]
export const actions = [
  {
    key: 'edit',
    text: i18n.t('common.edit'),
    permissions: 'srm:supplier:update'
  },
  {
    key: 'delete',
    text: i18n.t('common.delete'),
    permissions: 'srm:supplier:delete'
  },
  {
    key: 'view',
    text: i18n.t('common.view'),
    permissions: ''
  }
]

// 审核详情标签页
export const stepList = [
  {
    key: '0',
    label: i18n.t('supplier.registerAudit.baseInfo'),
    component: 'baseComponent'
  },
  {
    key: '1',
    label: i18n.t('supplier.registerAudit.legalRepresentative'),
    component: 'representComponent'
  },
  {
    key: '2',
    label: i18n.t('supplier.registerAudit.responsible'),
    component: 'responsibleComponent'
  },
  {
    key: '3',
    label: i18n.t('supplier.registerAudit.stockStructure'),
    component: 'capitalComponent'
  },
  {
    key: '4',
    label: i18n.t('supplier.registerAudit.invoiceInformation'),
    component: 'invoiceComponent'
  },
  {
    key: '5',
    label: i18n.t('supplier.registerAudit.bankInformation'),
    component: 'bankComponent'
  },
  {
    key: '6',
    label: '人员信息',
    component: 'personComponent',
    detail: 'SupplierPerson'
  },
  {
    key: '7',
    label: i18n.t('supplier.registerAudit.accessInfo'),
    component: 'accessComponent'
  }
]
